﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<RuiJing.Web.Areas.Manage.Models.LoginModels.IndexModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>后台管理</title>
    <link href="/Content/Site.css" rel="stylesheet" type="text/css" />
    <link href="/Content/login.css" rel="stylesheet" type="text/css" />
    <script src='<%=Url.Content("~/Scripts/jquery-1.4.2.js")%>' type="text/javascript"></script>
    <script src='<%=Url.Content("~/Scripts/jquery.validate.pack.js")%>' type="text/javascript"></script>
    <script src='<%=Url.Content("~/Scripts/MicrosoftMvcJQueryValidation.js")%>' type="text/javascript"></script>
    <% Html.EnableClientValidation(); %>
</head>
<body>
    <div class="page">
        <div id="header">&nbsp;</div>
        <div id="main">
            <% Html.BeginForm(); %>
            <table width="500px" class="table">
                <tr>
                    <td colspan="2">后台管理登录</td>
                </tr>
                <tr>
                    <td align="right">登录名称:</td>
                    <td align="left">
                        <input type="text" value='<%=Model.LoginName %>' id="LoginName" name="LoginName" />
                        <%=Html.ValidationMessageFor(p=>p.LoginName) %>
                        <%=Html.ValidationMessage("Error") %>
                    </td>
                </tr>
                <tr>
                    <td align="right">登录密码:</td>
                    <td align="left">
                        <input type="password" id="Password" name="Password" />
                        <%=Html.ValidationMessageFor(p=>p.Password) %>
                    </td>
                </tr>
                <tr>
                    <td align="right">验证码:</td>
                    <td align="left">
                        <input type="text" id="CheckCode" name="CheckCode" />
                        <img src='<%=Url.Action("CheckCode") %>' alt="点击换一张" onclick="this.src='<%=Url.Action("CheckCode") %>?r='+Math.random();" valign="middle" height="30px" />
                        <%=Html.ValidationMessageFor(p=>p.CheckCode) %>
                    </td>
                </tr>
                <tr>
                    <td colspan="2"><input type="submit" value="登录" /></td>
                </tr>
            </table>
            <% Html.EndForm(); %>
        </div>
        <div id="footer">&nbsp;</div>
    </div>
</body>
</html>
